{% extends "nav.html" %}
{% block little %}硬件告警{% endblock %}
{% block content %}
    <!-- Main Content -->
    <div class="container-fluid">
        <div class="side-body">
            <div class="page-title">
                <span class="title">硬件告警</span>
                <div class="description">硬件告警</div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="card-header">

                            <div class="card-title">
                                <div class="title">硬件告警</div>
                            </div>
                        </div>
                        <div class="card-body">
                            <table class="datatable table table-striped table-hover" cellspacing="0" width="100%">
                                <thead>
                                <tr>
                                    <th>创建时间</th>
                                    <th>故障原因</th>
                                    <th>所属设备</th>
                                    <th>故障等级</th>
                                    <th>处理过程</th>
                                    <th>结束时间</th>
                                      {% if perms.fault %}
                                    <th>操作</th>
                                    {% endif %}
                                </tr>
                                </thead>
                                <tfoot>
                                <tr>
                                    <th>创建时间</th>
                                    <th>故障原因</th>
                                    <th>所属设备</th>
                                    <th>故障等级</th>
                                    <th>处理过程</th>
                                    <th>结束时间</th>
                                    {% if perms.fault %}
                                    <th>操作</th>
                                    {% endif %}
                                </tr>
                                </tfoot>
                                <tbody>
                                {% for i in data %}
                                    <tr>
                                        <td>{{ i.FA_time }}</td>
                                        <td>{{ i.FA_Reason }}</td>
                                        <td>{{ i.ST_storage__ST_ip}}{{ i.ST_san__ip}}</td>
                                        <td>{{ i.FA_Grade }}</td>
                                        <td>{{ i.FA_Processing }}</td>
                                        <td>{{ i.FA_fishtime }}</td>
                                        {% if perms.fault %}
                                        <td><a type="button" nid="{{ i.id }}" class="btn btn-warning btn-xs st_sel_update" style="margin: 0px 0px;top: 0px;" >编   辑</a></td>
                                        {% endif %}
                                    </tr>
                                {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block js %}
    <div class="modal fade" tabindex="-1" role="dialog" id="san_update">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">更新光交信息</h4>
                </div>
                <div class="modal-body">
                    <p id="san_err">更新中,请等待&hellip;</p>
                    <div class="progress">
                        <div id="san_jindutiao" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default st_close" data-dismiss="modal" id="ST_close">关闭</button>
                    {#                    <button type="button" class="btn btn-primary">Save changes</button>#}
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <script>
    </script>
{% endblock %}